package com.xuecheng.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xuecheng.po.TeachplanMedia;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author itcast
 */
public interface TeachplanMediaMapper extends BaseMapper<TeachplanMedia> {

    @Delete("delete from teachplan_media where teachplan_id = #{teachPlanId} and media_id = #{mediaId}")
    int deleteTeachplanMediaById(
            @Param("teachPlanId") Long teachPlanId,
            @Param("mediaId") String mediaId);

}
